/*
 * @Descripttion:
 * @Author: YuZhenJing
 * @Date: 2020-01-01 12:52:58
 * @LastEditors: YuZhenJing
 * @LastEditTime: 2020-03-23 09:56:41
 */
import vue from "vue";
import Router from "vue-router";
import Layout from "../App.vue";
vue.use(Router);

const routes = [
  {
    path: "/",
    component: Layout,
    redirect: "nav",
    children: [
      {
        path: "/nav",
        component: () => import("../components/package/NavTree.vue")
      },
      {
        path: "/nav1",
        component: () => import("../components/default/NavTree.vue")
      }
    ]
  }
];
const router = new Router({
  mode: "history",
  routes: routes
});
export default router;
